package com.zjp.attendance.time;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;

import java.util.List;

public class ATimeUtil {


    public static int toSecond(String time) {

        List<String> split = StrUtil.split(time, ":");
        return (Convert.toInt(split.get(0)) * 60 * 60) + (Convert.toInt(split.get(1)) * 60);

    }


}
